def _main():
    sentence = input("请输入句子：")
    words = sentence.split()
    result = max(words, key=len)
    print(f"最长的单词 {result} 由 {len(result)} 个字母组成。")


if __name__ == "__main__":
    _main()
